package com.smart.campus.controller;

import com.smart.campus.dto.ProtectiveGuidanceManagement;
import com.smart.campus.interfaces.ProtectiveGuidanceManagementServiceApi;
import com.smart.campus.pojo.PagedResponse;
import com.smart.campus.service.ProtectiveGuidanceManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: smart-campus
 * @BelongsPackage: com.smart.campus.controller
 * @Author: 戴冰洁
 * @CreateTime: 2024-09-22  19:28
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
public class ProtectiveGuidanceManagementController implements ProtectiveGuidanceManagementServiceApi {
    @Autowired
    private ProtectiveGuidanceManagementService protectiveGuidanceManagementService;
    @Override
    public List<ProtectiveGuidanceManagement> protectiveList() {
        return protectiveGuidanceManagementService.protectiveList();
    }

    @Override
    public void addprotective(ProtectiveGuidanceManagement protectiveGuidanceManagement) {
        protectiveGuidanceManagementService.addprotective(protectiveGuidanceManagement);
    }
    
    @Override
    public ProtectiveGuidanceManagement protectiveById(Integer id) {
        return protectiveGuidanceManagementService.protectiveById(id);
    }

    @Override
    public PagedResponse<ProtectiveGuidanceManagement> protectiveListById(ProtectiveGuidanceManagement protectiveGuidanceManagement, Integer pageNum, Integer pageSize) {
        return protectiveGuidanceManagementService.protectiveListById(protectiveGuidanceManagement,pageNum,pageSize);
    }

    @Override
    public void updateprotective(ProtectiveGuidanceManagement protectiveGuidanceManagement) {
        protectiveGuidanceManagementService.updateprotective(protectiveGuidanceManagement);
    }

    @Override
    public void deleteprotective(Integer id) {
        protectiveGuidanceManagementService.deleteprotective(id);
    }
}
